<?php
$request = system_controller_front::getInstance()->getRequest();
$_keyword = system_user_control::$_keyword;
$keyword = trim($request->getQuery('keyword'));
$keyword = $keyword ? $keyword : $_keyword;
echo '<input type="text" value="' . $keyword .'" name="keyword" style="width:120px;"';
if(strtolower($keyword) == strtolower($_keyword)) echo ' class="gray" ';
echo ' onfocus="if(this.value==\'' . $_keyword . '\'){this.value=\'\';this.className=\'\';}"';
echo ' onblur="if(this.value==\'\'){this.value=\'' . $_keyword . '\';this.className=\'gray\';}" />';
?>